package com.baizhi.dao;

import com.baizhi.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * Created by 野马 on 2019/6/14.
 */
public interface AdminDao {

    //登陆
    public Admin login(@Param("username")String username, @Param("password")String password);

    //修改密码
    public void updatePassword(@Param("newPassword")String newPassword,@Param("id")int id);

    //添加管理员
    public void insertAdmin(Admin admin);
    //删除管理员
    public void deleteAdmin(int id);
    //修改
    public void updateAdmin(Admin admin);
    //查
    public List<Admin> selectList(@Param("start")int start,@Param("pageSize")int pageSize);

    public int countAdmin();
}
